﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Nivdal.InternalTeamMessageDetails" Title="" StylesheetTheme="SkinFile" Codebehind="InternalTeamMessageDetails.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, InternalTeamMessageDetails_PageNameLabel %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:HiddenField ID="MessageIdHiddenField" runat="server" />
    <asp:FormView ID="FormView1" runat="server" Width="100%" OnItemCommand="ButtonsAction"
        DataSourceID="GetMessageDetailsSqlDataSourse" BorderStyle="None" >
    <ItemTemplate>
        <div class="basic_element">
        <div class="red_title_no_padding">
        <div class="grey_title_inside_red floater">
            <asp:Label ID="TitleDataLabel" runat="server" Text='<%# Eval("[Title]") %>' CssClass="team_name_white"></asp:Label>
        </div>
        <div class="grey_title_triangle floater"></div>
        <asp:Label ID="DateDataLabel" runat="server" Text='<%# Eval("[Date]") %>' CssClass="white_title"></asp:Label>
        </div>
        <div class="padding5">
            <asp:Label ID="FromLabel" runat="server" Text='<%# Resources.Resource.Global_From+ ":"%>' CssClass="NewsDateStyle"></asp:Label>                 
            <asp:Label ID="FromDataLabel" runat="server" Text='<%# Eval("[From]") %>' SkinID="InfoLabel"></asp:Label>
            <br /><hr /><br />
            <asp:Label ID="MessageTextbox" runat="server" Text='<%# Eval("[Message]") %>' SkinID="ForumTextLabel"></asp:Label>
            <br />
            <asp:LinkButton ID="GreenButton" runat="server" SkinID="GreenTitleLink"
            Visible='<%# Eval("GreenButtonType").ToString().Length > 0 %>' 
            CommandName='<%# Eval("GreenButtonType") %>' CommandArgument='<%# Eval("ActionParameter") %>'
                Text='<%# ReturnButtonText(Eval("GreenButtonType")) %>' ></asp:LinkButton>
            &nbsp;
            <asp:LinkButton ID="GreyButton" runat="server" SkinID="GreenTitleLink" 
            Visible='<%# Eval("GreyButtonType").ToString().Length > 0 %>' 
            CommandName='<%# Eval("GreyButtonType") %>' CommandArgument='<%# Eval("ActionParameter") %>'
                Text='<%# ReturnButtonText(Eval("GreyButtonType")) %>' ></asp:LinkButton>
            <br /><br /> 
            <asp:HyperLink ID="NextMessageHyperlink" runat="server" SkinID="BlackHyperLinkSkin" Text="<%$ Resources:Resource, Global_Next %>"
                 NavigateUrl='<%# "InternalTeamMessageDetails.aspx?MessageId=" + Eval("NextMessageId") %>'
                 Visible='<%# (Eval("NextMessageId").ToString() != "0") %>'></asp:HyperLink>
             &nbsp;&nbsp;
            <asp:HyperLink ID="HyperLink1" runat="server" SkinID="BlackHyperLinkSkin" Text="<%$ Resources:Resource, Global_Previous %>"
                NavigateUrl='<%# "InternalTeamMessageDetails.aspx?MessageId=" + Eval("PrevMessageId") %>'
                Visible='<%# (Eval("PrevMessageId").ToString() != "0") %>'></asp:HyperLink>
             
             <br /><br />   
             <asp:LinkButton runat="server" ID="ListOfMessagesLinkButton" SkinID="TitleLink" PostBackUrl="~/InternalTeamMessages.aspx" 
     Text="<%$ Resources:Resource, InternalTeamMessageDetails_ListOfMessagesLinkButton %>" ></asp:LinkButton>
        </div>
        </div>
    </ItemTemplate>      
    
    </asp:FormView>
    
    <asp:SqlDataSource ID="GetMessageDetailsSqlDataSourse" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetInternalMessageDetails" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
        
     
</asp:Content>